package com.itheima03;

import java.util.Arrays;

/**
 * @author Xiao
 * @date 2021/7/13
 */
public class ArrayDemo02 {
    /**
     * API_Arrays
     */
    public static void main(String[] args) {
        int[] arr = {11, 33, 55, 77, 99, 22, 44, 66, 88};
        //Arrays.toString(arr); → 数组转字符串
        System.out.println("排序前：" + Arrays.toString(arr));
        System.out.println("------------");
        //Arrays.sort(arr); → 数组冒泡排序
        Arrays.sort(arr);
        System.out.println("排序后：" + Arrays.toString(arr));
    }
}
